package com.raychi.demo.util;

import java.sql.ResultSet;

import com.raychi.demo.entity.Category;

public class CategoryUtil {
	public static Category creatCategory(ResultSet rs) throws Exception{
		Category category = new Category();
		category.setId(rs.getInt("id"));
		category.setName(rs.getString("name"));
		category.setListOrder(rs.getInt("listOrder"));
		category.setProCount(rs.getInt("proCount"));
		return category;
	}
}
